package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.CustAcctLog;
import com.zx.map.dao.model.CustAcctLogExample;

public interface CustAcctLogDao {

	/**
	 * 新增
	 *
	 * @param custAcctLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public Integer add(CustAcctLog custAcctLog) throws DataAccessException;

	/**
	 * 更新
	 *
	 * @param custAcctLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public Integer update(CustAcctLog custAcctLog) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param custAcctLog
	 * @throws org.springframework.dao.DataAccessException
	 */
	public void delete(CustAcctLog custAcctLog) throws DataAccessException;

	/**
	 * 根据Model查找List
	 * @param example
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<CustAcctLog> getListByExample(CustAcctLogExample example) throws DataAccessException;

     /**
     *  根据筛选的记录 更新某个字段
     */
    public void updateByExample(CustAcctLog custAcctLog, CustAcctLogExample example);
    
    public int countListByExample(CustAcctLogExample example);
    
    /**
     * 分页查找
     */
	public List<CustAcctLog> getPageByExample(int pageSize, int pageBegin,
			CustAcctLogExample example) throws DataAccessException ;
	
}
